package ioexercise;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FosDemo {
    public static void main(String[] args) throws IOException {
        //1. 单字节写
        FileOutputStream fos=new FileOutputStream("fos1.dat",true);
        fos.write(0);
        fos.write(1);
        System.out.println("写出完毕");
        fos.close();
    }
}
